﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Content.Master" AutoEventWireup="true" CodeBehind="ClassMemberInfo.aspx.cs" Inherits="RED_NET.ContentPage.ClassMemberInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
   
导入班级成员信息<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label><asp:FileUpload ID="FileUpload1" runat="server" />
    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
&nbsp;
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click1" Text="确定" />
&nbsp;<asp:Label ID="Label5" runat="server" Text="Label"></asp:Label><br />
    
      <br/><dl>
    <dt onclick ="Visiable(Divl)"> 添加新数据</dt><dd><divid="Divl" style=" display：none">
      学号：<asp:TextBox ID ="txtUid" runat ="server" />
      学院：<asp:TextBox ID ="txtCollege" runat ="server" /> 
      班级：<asp:TextBox ID ="txtClass" runat ="server"  />  <br />
      专业：<asp:TextBox ID ="txtMajor" runat ="server" />
      姓名：<asp:TextBox ID ="txtName" runat ="server" />
      性别：<asp:TextBox ID ="txtSex" runat ="server" />  <br />
      长号：<asp:TextBox ID ="txtLongTel" runat ="server" />  <br />
      <asp:Button ID ="Button2" runat ="server" Text ="添加" OnClick ="btnAdd_Click" />
      </dd>
      </dl> 
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DeleteMethod="Delete" InsertMethod="Insert" SelectMethod="Select" 
        TypeName="RED_NET_Core.DAL.Class_DAL" UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="_Id" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="_Id" Type="String" />
            <asp:Parameter Name="_Uid" Type="String" />
            <asp:Parameter Name="_Class" Type="String" />
        </UpdateParameters>
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="_Id" SessionField="USER_ID" 
                Type="Int32" />
        </SelectParameters>
        <InsertParameters>
            <asp:Parameter Name="_Uid" Type="String" />
            <asp:Parameter Name="_Class" Type="String" />
            <asp:Parameter Name="_BeOfUserId" Type="String" />
        </InsertParameters>
    </asp:ObjectDataSource>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns ="False" EnableViewState ="False" 
        CellPadding="4" DataSourceID="ObjectDataSource1" PageSize="26" 
        DataKeyNames="_Id" AllowSorting="True" Font-Size="20px" >
        <RowStyle ForeColor="#4A3C8C" height="15" BackColor="#E7E7FF" 
            Font-Size="Small" />
        <EmptyDataRowStyle Font-Size="Small" />
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" 
            Font-Size="Small" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" 
            Font-Size="Small" />
        <HeaderStyle BackColor="#A8A8D5" Font-Bold="True" ForeColor="#F7F7F7" 
            Font-Size="Small" BorderColor="#66FFFF" BorderStyle="Ridge" 
            Height="18px" />
        <EditRowStyle Font-Size="Small" />
        <AlternatingRowStyle BackColor="#F7F7F7" Font-Size="Small" />
        <Columns>
           <asp:BoundField DataField ="_Uid" HeaderText ="学号" />
           <asp:BoundField  DataField ="_College" HeaderText ="学院" />
           <asp:BoundField  DataField ="_Class" HeaderText ="班级" />
           <asp:BoundField  DataField ="_Major" HeaderText ="专业" />
           <asp:BoundField  DataField ="_Name" HeaderText ="姓名" />
           <asp:BoundField  DataField ="_Sex" HeaderText ="性别" />
           <asp:BoundField  DataField ="_LongTel" HeaderText ="长号" />                      
           <asp:CommandField ShowEditButton="True" ShowDeleteButton="true"  
                HeaderText="操作"/>
        </Columns>
        <EmptyDataTemplate >没有找到符合的数据。</EmptyDataTemplate>
    </asp:GridView>
    

   
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>
